﻿using Customer.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Customer.Infrstructre.FinanceManager
{
    /// <summary>
    /// 实收仓储接口
    /// </summary>
    public class PaymentRepository : BaseRepository<Payment>, IPaymentRepository
    {
        public PaymentRepository(EFCoreDBcontext _dbContext) : base(_dbContext)
        {
        }
        //添加
        public async Task<int> AddAsync(Payment entity)
        {
            return await base.AddAsync(entity);
        }
        //删除
        public async Task<int> DelAsync(Payment entity)
        {
            return await base.DelAsync(entity);
        }
        //显示
        public async Task<List<Payment>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        //带有条件的查询
        public async Task<List<Payment>> GetAsync(Expression<Func<Payment, bool>> expr)
        {
            return await base.GetAsync(expr);
        }
        //反填
        public async Task<Payment> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }
        //修改
        public async Task<int> Update(Payment entity)
        {
            return await base.Update(entity);
        }


    }
}
